package com.xinongbest.mall.service;

import com.xinongbest.mall.exception.ImoocMallException;
import com.xinongbest.mall.model.pojo.User;

public interface UserService {
    User getUser(Integer id);

    void register(String userName, String password) throws ImoocMallException;

    User login(String userName, String password) throws ImoocMallException;

    void updateInfo(User user) throws ImoocMallException;

    Boolean checkAdminRole(User user);
}
